<template>
  <div>
    <el-input v-model="login" style="width: 240px" placeholder="Please input" />
    <el-button type="success" @click="b_fun()">Success</el-button>
    <h1>{{msg}}</h1>
    <el-button type="success" @click="tiaozhuan()">tiaozhuan</el-button>
    <el-button type="danger" @click="message">消息提示</el-button>
    <el-button type="success" @click="login_to">登录成功后的跳转</el-button>
  </div>
</template>

<script>
export default {
  name: "TempForm",
  data() {
    return {
      login:'',
      msg:'',
    }
  },
  methods: {
    login_to(){
      this.$router.push('/ai-assistant');
    },
    b_fun(){
      this.msg=this.login;
    },
    tiaozhuan(){
      this.$router.push('/');
    },
    message(){
      this.$message({
        type:'warning',
        message:'错误提示'
      })
    }
  }
}
</script>

<style scoped>

</style>